package homeworks.cjt2010.homework1;

public enum GroupDiscount {
	NULL_LEVEL(0.0, 2, 4), 
	FIRST_LEVEL(0.1, 5, 9),
	SECOND_LEVEL(0.15,10, Integer.MAX_VALUE);

	private double percent = 0d;
	private int lowerBound = 0;
	private int upperBound = 0;

	private GroupDiscount(double percent, int lowerBound, int upperBound) {
		this.percent = percent;
		this.lowerBound = lowerBound;
		this.upperBound = upperBound;
	}

	public int getLowerBound() {
		return lowerBound;
	}

	public int getUpperBound() {
		return upperBound;
	}

	public double getPercent() {
		return percent;
	}
}
